jQuery(document).ready(function() {
    if(jQuery('#article-node-form').length>0){
        form_format_article_add();
    }
    if(jQuery('#comment-form').length>0){
        form_format_comment();
    }
});
function form_format_article_add(){
    jQuery('#edit-field-image .description').remove();
    jQuery('#edit-field-tags .description').remove();
    jQuery('#edit-body-und-0-format').hide();
    jQuery('#edit-field-category').hide();
    var html = '<div class="article_catogory_box"><div class="article_catogory_item article_catogory_item_active" data="3">舌尖</div><div class="article_catogory_item" data="4">旅行</div><div class="article_catogory_item" data="2">摄影</div><div class="article_catogory_item" data="1">乐活</div><div class="article_catogory_item" data="5">购物</div><div class="article_catogory_item" data="6">百科</div></div>';
    jQuery(html).appendTo('#edit-body');
    if(jQuery('#edit-field-category-und').val()!==''){
        jQuery('.article_catogory_item').removeClass("article_catogory_item_active");
        jQuery('.article_catogory_item[data='+jQuery('#edit-field-category-und').val()+']').addClass("article_catogory_item_active");
    }
    jQuery(".article_catogory_item").live("click",function(){
        jQuery('.article_catogory_item').removeClass("article_catogory_item_active");
        jQuery(this).addClass("article_catogory_item_active");
        jQuery('#edit-field-category-und').val(jQuery(this).attr('data'));
    });
}
function form_format_comment(){
    jQuery('#edit-comment-body-und-0-format').hide();
}